package com.demo.webapp.views.freemarker.directive.model;

import java.util.ArrayList;
import java.util.List;

/**
 * 指令组模型
 * 存储指令的集合
 * @author ryuu.kk
 *
 */
public class DirectiveGroupModel implements java.io.Serializable {

	/**
	 * 版本序列化ID
	 */
	private static final long serialVersionUID = 5753095092879077172L;

	/**
	 * 指令版本
	 */
	private String version;
	
	/**
	 * 短名
	 */
	private String shortname;
	
	/**
	 * uri地址
	 */
	private String uri;
	
	/**
	 * 描述信息
	 */
	private String info;
	
	/**
	 * 指令模型列表
	 */
	private List<DirectiveModel> directiveModelList;

	public String getVersion() {
		return version;
	}

	public void setVersion(String version) {
		this.version = version;
	}

	public String getShortname() {
		return shortname;
	}

	public void setShortname(String shortname) {
		this.shortname = shortname;
	}

	public String getUri() {
		return uri;
	}

	public void setUri(String uri) {
		this.uri = uri;
	}

	public String getInfo() {
		return info;
	}

	public void setInfo(String info) {
		this.info = info;
	}

	public void addDirectiveModel(DirectiveModel model) {
		if (directiveModelList == null) {
			directiveModelList = new ArrayList<DirectiveModel>();
		}
		directiveModelList.add(model);
	}
	
	public List<DirectiveModel> getDirectiveModelList() {
		return directiveModelList;
	}

	public void setDirectiveModelList(List<DirectiveModel> directiveModelList) {
		this.directiveModelList = directiveModelList;
	}
}
